home *** CD-ROM | disk | FTP | other *** search
-
- Here is another problem maybe someone can help me with?
-
- On a non-scrolling, 32 color, 320 x 200 NTSC screen, I have changed
- the mouse pointer into a pencil shape image I made, using the code below:
-
- Hide
- Sprite 0,X Hard(361),Y Hard(100),35 : rem 35 is the image # for
- the pencil shape
- Channel 0 to Sprite 0
- Amal 0,"M:Let X=XM;Let Y=YM;Jump M;"
- Amal On 0
-
- How do I detect a collision between the mouse pointer (sprite 0) and a bob,
- For example, Bob 5 ?
-
- I have tried the following:
-
- C=Spritebob Col(0,5 To 5)
- If C=-1
- End
- End If
-
- It does'nt work!! Why?
- I have even tried: Bobsprite Col...
- Bob Col...
- Sprite Col...
- Nothing works when I want a collision between sprite 0 and a bob!!!!
-
- If I change the sprite into a bob like this, it works:
- Bob 0,X Hard(360),Y Hard(100),35
- Channel 0 To Bob 0
- Amal 0,"M:Let X=XM'Let Y=YM;Jump M;"
- AmalOn 0
-
- This works fine for 'C=Bob col (0,5 to 5)
-
- But how do you detect a collision between a sprite and a bob??
-
- Robert W. Benjamin
- rwbenjamin@sosbbs.com
-
-
-